Write description in Coastal Explorer.
authorrobertl <robertl>
Tue, 11 Aug 2009 14:52:50 +0000 (14:52 +0000)
committerrobertl <robertl>
Tue, 11 Aug 2009 14:52:50 +0000 (14:52 +0000)
coastexp.c
reference/coastexp.ref2
reference/coastexp.ref4

index 6916612756232e68ee8e82743bb67964cd540187..73f408d71d3a10a80b6462348ab4a9118de32227 100755 (executable)
@@ -588,6 +588,9 @@ ce_waypt_pr(const waypoint *wp)
        sprintf(xml_buffer, "%3.6f %c %3.6f %c", latitude, NorS, longitude, EorW);
        write_xml_entity(ofd, "\t\t", "Position", xml_buffer);
        write_optional_xml_entity(ofd, "\t\t", "Name", wp->shortname);
+       if (wp->description && wp->shortname && 
+             strcmp(wp->description, wp->shortname))
+       write_optional_xml_entity(ofd, "\t\t", "Description", wp->description);
 }
 
 static char *
index b9385cbde7032a8890712b880c2060355ce86cd1..7344feaab59b08ebdc7697d44d2bb7f3decd44ce 100644 (file)
        <Mark created="20041105T213647Z" id="{e0e1e2e3-e4e5-e6e7-e8e9-eaebecedeeef}">
                <Position>34.884641 N 120.652026 W</Position>
                <Name>PTSALENT</Name>
+               <Description>A description of the Point Sal Entrance mark</Description>
        </Mark>
        <Mark created="20041105T213704Z" id="{f0f1f2f3-f4f5-f6f7-f8f9-fafbfcfdfeff}">
                <Position>34.896555 N 120.649124 W</Position>
index b9385cbde7032a8890712b880c2060355ce86cd1..7344feaab59b08ebdc7697d44d2bb7f3decd44ce 100644 (file)
        <Mark created="20041105T213647Z" id="{e0e1e2e3-e4e5-e6e7-e8e9-eaebecedeeef}">
                <Position>34.884641 N 120.652026 W</Position>
                <Name>PTSALENT</Name>
+               <Description>A description of the Point Sal Entrance mark</Description>
        </Mark>
        <Mark created="20041105T213704Z" id="{f0f1f2f3-f4f5-f6f7-f8f9-fafbfcfdfeff}">
                <Position>34.896555 N 120.649124 W</Position>